﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Question_Ctl.ascx.cs" Inherits="Interview_Prov.Controls.Question_Ctl" %>
<!-- Static data -->
Question #: <asp:Label ID="q_relative_number" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="question_text" runat="server" Text="Label"></asp:Label>

<!-- Editor for changing question text -->
<asp:TextBox ID="q_text_editor" runat="server" 
    ontextchanged="q_text_editor_TextChanged"></asp:TextBox><br />

 <asp:RadioButtonList ID="radio_answers" runat="server">
 </asp:RadioButtonList>
<!-- Placeholder for answers -->
<asp:PlaceHolder ID="answers_ph" runat="server">
</asp:PlaceHolder>

<!-- Question type editor -->
<asp:RadioButtonList ID="question_type_editor" runat="server" 
    AutoPostBack="True" Visible="false" 
    onselectedindexchanged="question_type_editor_SelectedIndexChanged">
<asp:ListItem>Multiple choice</asp:ListItem>
<asp:ListItem>Single choice</asp:ListItem>
<asp:ListItem>Text input</asp:ListItem>
</asp:RadioButtonList>

<asp:Button ID="add_answer_button" runat="server" Text="Add answer" 
    Visible="false" onclick="add_answer_button_Click" />
<asp:Button ID="delete_button" runat="server" onclick="delete_button_Click" 
    Text="Delete this question" />
    <br />
